package jwdt.web.validate;

import com.ezerg.web.Form;
import com.ezerg.web.Module;
import com.ezerg.web.Page;
import com.ezerg.web.Validator;

public class OrderValidator extends Validator {

	public OrderValidator() {
		super.validateRequiredString("yourname", "姓名不能为空。");
		super.validateRequiredString("telephone", "电话不能为空。");
		super.validateRequiredString("updatetime", "日期不能为空。");
	}
	
	@Override
	protected Page handleError(Form f, Module m) {
		return m.findPage("service");
	}	
}
